package admin.code.generator.core.metadata;

import admin.code.generator.util.StringUtil;

/**
 * 页面属性封装
 *
 * @author dw_chenqi
 * @date 2016年3月7日
 */
public class PageProperty {
	private String name;//属性名称
	private String text;//页面描述
	private String modelName;//${model.name}-->解决${}冲突

	public PageProperty(String name, String text, String modelName) {
		super();
		this.name = name;
		this.text = StringUtil.isNotBlank(text) ? text : name;
		this.modelName = modelName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

}